package com.ruoyi.supplier.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supplier.mapper.SupShopLogoMapper;
import com.ruoyi.supplier.domain.SupShopLogo;
import com.ruoyi.supplier.service.ISupShopLogoService;

/**
 * logo店招信息Service业务层处理
 * 
 * @author zjf
 * @date 2025-11-05
 */
@Service
public class SupShopLogoServiceImpl implements ISupShopLogoService 
{
    @Autowired
    private SupShopLogoMapper supShopLogoMapper;

    /**
     * 查询logo店招信息
     * 
     * @param logoId logo店招信息主键
     * @return logo店招信息
     */
    @Override
    public SupShopLogo selectSupShopLogoByLogoId(Long logoId)
    {
        return supShopLogoMapper.selectSupShopLogoByLogoId(logoId);
    }

    /**
     * 查询logo店招信息列表
     * 
     * @param supShopLogo logo店招信息
     * @return logo店招信息
     */
    @Override
    public List<SupShopLogo> selectSupShopLogoList(SupShopLogo supShopLogo)
    {
        return supShopLogoMapper.selectSupShopLogoList(supShopLogo);
    }

    /**
     * 新增logo店招信息
     * 
     * @param supShopLogo logo店招信息
     * @return 结果
     */
    @Override
    public int insertSupShopLogo(SupShopLogo supShopLogo)
    {
        supShopLogo.setCreateTime(DateUtils.getNowDate());
        return supShopLogoMapper.insertSupShopLogo(supShopLogo);
    }

    /**
     * 修改logo店招信息
     * 
     * @param supShopLogo logo店招信息
     * @return 结果
     */
    @Override
    public int updateSupShopLogo(SupShopLogo supShopLogo)
    {
        return supShopLogoMapper.updateSupShopLogo(supShopLogo);
    }

    /**
     * 批量删除logo店招信息
     * 
     * @param logoIds 需要删除的logo店招信息主键
     * @return 结果
     */
    @Override
    public int deleteSupShopLogoByLogoIds(Long[] logoIds)
    {
        return supShopLogoMapper.deleteSupShopLogoByLogoIds(logoIds);
    }

    /**
     * 删除logo店招信息信息
     * 
     * @param logoId logo店招信息主键
     * @return 结果
     */
    @Override
    public int deleteSupShopLogoByLogoId(Long logoId)
    {
        return supShopLogoMapper.deleteSupShopLogoByLogoId(logoId);
    }
}
